<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>上传相片</title>
<script type="text/javascript" src="/Public/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/Public/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/Public/js/lazyload.js"></script>

<style type="text/css">
fieldset legend{
padding-left:0	
}
.label_set{
width:80px;
text-align:left;
}
</style>
<script type="text/javascript" src="/Public/data/DataLabel.js"></script>
<script type="text/javascript" src="/Public/swfupload/swfupload.js"></script>


	<script type="text/javascript" src="/Public/swfupload/swfupload.queue.js"></script>
	<script type="text/javascript" src="/Public/swfupload/swfupload.speed.js"></script>
	<script type="text/javascript" src="/Public/swfupload/js/speed_handlers.js"></script>

<script type="text/javascript">
		var swfu;

		window.onload = function() {
			var settings = {
				flash_url : "/Public/swfupload/swfupload.swf",
				flash9_url : "/Public/swfupload/swfupload_fp9.swf",
				upload_url: "http://<?php echo $_SERVER['HTTP_HOST'];?>/?s=Albums/PhotoPost",
				post_params: {"baby_parentid":"<?php echo $fb_baby_array['session_fb']['baby_parentid']?>"},
				file_size_limit : "10 MB",
				file_types : "*.jpg;*.png",
				file_types_description : "All Files",
				file_upload_limit : 10,
				file_queue_limit : 0,

				debug: false,

				// Button settings
				
				
				button_image_url : "/Public/images/SmallSpyGlassWithTransperancy_17x18.png",
				button_placeholder_id : "spanButtonPlaceHolder",
				button_width: 160,
				button_height: 18,
				button_text : '<span class="button">请选择照片 <span class="buttonSmall">(5 MB Max)</span></span>',
				button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10px; }',
				button_text_top_padding: 0,
				button_text_left_padding: 18,
				button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
				button_cursor: SWFUpload.CURSOR.HAND,


				
				moving_average_history_size: 40,
				
				// The event handler functions are defined in handlers.js
				swfupload_preload_handler : preLoad,
				swfupload_load_failed_handler : loadFailed,
				file_queued_handler : fileQueued,
				file_dialog_complete_handler: fileDialogComplete,
				upload_start_handler : uploadStart,
				upload_progress_handler : uploadProgress,
				upload_success_handler : uploadSuccess,
				upload_complete_handler : uploadComplete,
				
				custom_settings : {
					
				}
			};

			swfu = new SWFUpload(settings);
	     };
	</script>

</head>

<body>
<div class="container">
<include file="./template/default/Public/header.html" />
</div>  

<div class="container">          
<div id="page">

      <div class="container">
      
      
      <section id="main">
<div class="upload">
<fieldset>
<legend>上传相片</legend>
<form method="post" action="/index.php?s=/Home/Albums/doAlbums">
		<div style=" margin-bottom: 10px;">
			<div id="spanButtonPlaceHolder">载入中</div><span style="color:#ccc">可上传多张照片（最多10张）</span>  <span style="display:none" id="btn_submit"><button type="submit" class="btn">提交</button></span>
		</div>
<table class="table table-hover">
<tbody id="queue_body">

</tbody>
</table>
<div>

          </div>        
	</form>
</fieldset>


</div>
      </section>
      
      </div>
</div>

</div>




</body>
</html>